package com.design.pattern.creator.factory.pay.simple;

public class Test {
    public static void main(String[] args) {
        DomesticPaymentFactory domesticPaymentFactory = new DomesticPaymentFactory();
        domesticPaymentFactory.createAliPayment().pay();
        domesticPaymentFactory.createDomesticApplePayment().pay();
        domesticPaymentFactory.createWxPayment().pay();
        domesticPaymentFactory.createUniPayment().pay();

        ForeignPaymentFactory foreignPaymentFactory = new ForeignPaymentFactory();
        foreignPaymentFactory.createApplePayment().pay();
    }
}
